package cn.bgs.pojo;

import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDateTime;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 留言评价表
 * </p>
 *
 * @author Mr.Zhao
 * @since 2022-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CommentEvaluation对象", description="留言评价表")
public class CommentEvaluation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "家乡风貌id")
    private Integer homeStyId;

    @ApiModelProperty(value = "编号")
    private String comEvaNumber;

    @ApiModelProperty(value = "标题")
    private String comEvaTitle;

    @ApiModelProperty(value = "评价人")
    private String comEvaAppraiser;

    @ApiModelProperty(value = "发布来源")
    private Integer comEvaFrom;

    @ApiModelProperty(value = "时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//JsonFormat是出参格式化。
    private LocalDateTime comEvaTime;

    @ApiModelProperty(value = "状态")
    private String comEvaState;

    @ApiModelProperty(value = "图片")
    private String comEvaPhoto;

    @ApiModelProperty(value = "删除标志(1删除 0未删)")
    private Integer deleteFlag;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;


}
